package com.example.bbs.controller;


import com.example.bbs.entity.Selfchecking;
import com.example.bbs.service.SelfcheckingScoreService;
import com.fasterxml.jackson.databind.util.JSONPObject;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.util.StopWatch;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author jiaziyun
 * @since 2021-04-30
 */
@Controller
@RequestMapping("/selfchecking-score")
public class SelfcheckingScoreController {
    @Autowired
    private SelfcheckingScoreService selfcheckingScoreService;

    //指定id 和 score 返回结果
    @RequestMapping("/by_id_score")
    @ResponseBody
    public String getSesultByIdScore(@RequestBody HashMap<String, String> paramMap) {
        return selfcheckingScoreService.getSesultByIdScore(paramMap);
    }
}
